import service from "../utils/request";
export function user_login(payload = {}) {
    return service.post('/api/user/login',payload)
}
export function user_register( payload = {} ){
    return service.post('/api/user/register',payload);
}
export function shop_fav(payload = {}) {
    return service.post('/api/shop/fav',payload)
}
export function shop_unfav(payload = {}) {
    return service.post('/api/shop/unfav',payload)
}
export function shop_favlist( payload = {} ){
    return service.get('/api/shop/favlist',{ params: payload });
}
export function shop_list( payload = {} ){
    return service.get('/api/shop/list',{ params: payload });
}

export function shop_shopinfo( payload = {} ){
    return service.get('/api/shop/shopinfo',{ params: payload });
}
export function tuan_list(payload = {}) {
    return service.get('/api/tuan/list',{params:payload})
}
export function swiper_list( payload = {} ){
    return service.get('/api/banner/list',{ params: payload });
}
export function shopcart_list( payload = {} ){
    return service.get('/api/shopcart/list',{ params: payload });
}
export function shop_search( payload = {} ){
    return service.get('/api/shop/search',{ params: payload });
}
export function shopcart_clear( payload = {} ){
    return service.post('/api/shopcart/clear',payload);
}
export function shopcart_add( payload = {} ){
    return service.post('/api/shopcart/add',payload);
}
export function shopcart_sub(payload = {}) {
    return service.post('/api/shopcart/sub', payload);
}

export function address_list( payload = {} ){
    return service.get('/api/address/list',{ params: payload });
}

export function address_add(payload = {}) {
    return service.post('/api/address/add', payload);
}
export function address_del(payload = {}) {
    return service.post('/api/address/del', payload);
}
export function address_edit(payload = {}) {
    return service.post('/api/address/edit', payload);
}